// locutor
// (c) 2009, Normen Müller, normen.mueller@gmail.com  
// $Id: LocutorTst.scala 25 2009-11-09 11:38:53Z normen.mueller $
package locutor.test.cli

import java.io.File

import scaup.Views._

object LocutorTst {
  
  def main(args: Array[String]) {
    
    // config
    System.setProperty("locutor.tmp",    "/Users/nmueller/tmp/locutor")
    System.setProperty("locutor.grgen",  "/opt/grgen/bin")
    System.setProperty("locutor.equivs", "etc/kb/eq")
    System.setProperty("locutor.models", "etc/kb/gm")
    System.setProperty("locutor.rules",  "etc/kb/rs")
    
    val LOCUTOR_EQUIVS = System.getProperty("locutor.equivs").toFile
    val LOCUTOR_RULES  = System.getProperty("locutor.rules").toFile
    
    val orgFile = "etc/data/svnbook/svnbook.xml".toFile
    
    // ---------------------------------------------------
    // ``<preface id="svn.foreword">'' removed    
    val modFile = "etc/data/svnbook/svnbook-v1.xml".toFile
    
    // ``<preface id="svn.foreword">'' removed
    // ``<indexterm>'' removed
    //val modFile = "etc/data/svnbook/svnbook-v2.xml".toFile
    // ---------------------------------------------------

    // parameters
    val args = Array[String](
      "etc/data/svnbook/svnbook.dg",        // dependency graph
      (LOCUTOR_EQUIVS / "svnbook.eq").path, // equivalence system
      (LOCUTOR_RULES / "svnbook.rs").path,  // rule system
      orgFile.path,                         // old file
      modFile.path                          // modified file
    )
      
    locutor.cli.Locutor.main(args)

  }

}
